std::ferror

From Cppreference

< cpp | io | c
Jump to: navigation, search
Defined in header <cstdio>

int ferror( FILE *stream );

Checks the given stream for errors.

Contents

Parameters

stream - the file stream to check

Return value

nonzero value if the file stream has errors occurred, 0 otherwise

Example

See also

clearerr
clears errors
(function)
feof
checks for the end-of-file
(function)
perror
displays a character string corresponding of the current error to stderr
(function)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
In other languages